<%@ page language="java" pageEncoding="UTF-8"
	contentType="text/html; charset=UTF-8"%>
<%@page import="bean.Grass"%>
<%@page import="java.util.*"%>
<%
	List<Grass> result = (List<Grass>) request.getAttribute("result");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>My JSP 'index.jsp' starting page</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<link rel="stylesheet" type="text/css" href="css/layout.css">

	</head>

	<body>
		<div id="container">
			<div id="header">
				<form action="/yangchicao/Search">
					<input type="text" name="keyword" />
					<input type="submit" value="搜索">
				</form>
			</div>
			<div id="mainContent">				
				<div id="content">
					<div>
						图片
					</div>
					<div>
						商品信息
					</div>
					<div>
						价格
					</div>
					<div>
						来自
					</div>
					<%
						for (Grass grass : result) {
					%>
					<div></div>
					<div>
						<%
							out.print(grass.getText());
						%>
					</div>
					<div></div>
					<div></div>
					<%
						}
					%>

				</div>
			</div>
		</div>
		<div id="footer">
			This is the footer
		</div>
		</div>
	</body>
</html>